package com.shop.cereshop.app.page.comment;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @description:
 * @author lx
 * @date 2025/7/30 17:28
 * @version 1.0
 */
@Data
@ApiModel(value = "ProductCommentVO", description = "商品评论返回数据")
public class ProductCommentVO {

    @ApiModelProperty(value = "评论id")
    private Long commentId;

    @ApiModelProperty(value = "发布者id")
    private Long buyerUserId;

    @ApiModelProperty(value = "发布者昵称")
    private String publisherName;

    @ApiModelProperty(value = "发布时间")
    private String createTime;

    @ApiModelProperty(value = "发布时间时间戳")
    private Long publishTime;

    @ApiModelProperty(value = "发布者头像")
    private String headImage;

    @ApiModelProperty(value = "一级评论图片(多个以逗号隔开)")
    @JsonIgnore
    private String image;

    @ApiModelProperty(value = "一级评论图片数组")
    private List<String> images;

    @ApiModelProperty(value = "评论内容")
    private String comment;

    @ApiModelProperty(value = "追加评论")
    private String addComment;

    @ApiModelProperty(value = "商品满意度 1-一星 2-二星 3-三星 4-四星 5-五星")
    private Integer star;

    @ApiModelProperty(value = "浏览量")
    private Integer viewCount;

    @ApiModelProperty(value = "评论数量")
    private Integer commentCount;

    @ApiModelProperty(value = "是否点赞")
    private Integer ifLike;

    @ApiModelProperty(value = "点赞数量")
    private Integer likeCount;

    @ApiModelProperty(value = "评论父id")
    @JsonIgnore
    private Long parentId;

    @ApiModelProperty(value = "二级评论列表")
//    private List<ReplyCommentVO> replyComments;

    private List<ProductCommentVO> replies;
}
